

function ajaxFunction(obj)
 {
 
  $(".wuliusheng").removeClass("red");
    $("#wuliu"+ obj +"").addClass("red");
//document.getElementById("wuliu"+ obj +"").style.color = "red";

 var xmlHttp;
 
 try
    {
   // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
 catch (e)
    {
  // Internet Explorer
   try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
   catch (e)
      {

      try
         {
         xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
         }
      catch (e)
         {
         alert("您的浏览器不支持AJAX！");
         return false;
         }
      }
    }
	
      xmlHttp.onreadystatechange=function()
      {
      
      //for(var m=0;m<document.getElementById("city").options.length;m++)
      //{
      //  document.getElementById("city").options.remove(m);   
      //}
 
      document.getElementById("zx_city").style.display = "block";
      document.getElementById("zx_city").innerHTML = "";
	
	//document.getElementById("wuliu+"+ obj +"").style.color = "red";      

      if(xmlHttp.readyState==4)
      {
         var citylist=xmlHttp.responseText;
         var i,j;
         var t1=citylist.split("|");
         var t2;
         for(i=0;i<t1.length-1;i++)
         {
            t2=t1[i].split(",");
            
            //oItem=document.createElement('OPTION');
            //oItem.text=t2[1];
            //oItem.value=t2[0];
            //document.getElementById("city").options.add(oItem);
            document.getElementById("zx_city").innerHTML+="<a href='http://" + document.getElementById("jx").value +".fenlei168.com/wuliu/"+document.getElementById("jx").value+"-"+t2[0]+"/'>"+ t2[1] +"</a>";
         }
        
        
       // http://" + document.getElementById("jx").value +".fenlei168.com/wuliu/"+document.getElementById("jx").value+"-"+document.getElementById("city").value+"/
        
        //document.getElementById("cityi_hf").value= document.getElementById("city_ddl").value;

      }
        
      }
      
    xmlHttp.open("GET","/js/ajax.aspx?shengid="+obj,true);
    xmlHttp.send(null);
  
 }



